/*
 * XmlTagNotFound.cpp
 *
 *  Created on: Jan 7, 2009
 *      Author: sez
 */

#include "XmlTagNotFound.h"

#include <QObject>

/*!
 * \brief Encapsulate tag not found conditions in Xml handling.
 * \details Instances of this class are constructed on the stack
 * and thrown when tag not found is detected in Xml processing.
 */

/*!
 * \brief Construct a new XmlTagNotFound object.
 * \details The new object is initialized with a message stating
 * that the given XML \a tagName is not found.
 * \param fileName to be set on the XmlException.
 */
XmlTagNotFound::XmlTagNotFound(const QString &tagName)
    : XmlException(QObject::tr("Tag name not found: %1").arg(tagName))
{
}

XmlTagNotFound::XmlTagNotFound(const QString &tagName, const QString &fileName)
    : XmlException(QObject::tr("Tag name \"%1\" not found processing file: %2").arg(tagName).arg(fileName))
{
}

/*!
 * \brief Destroy the object, returning any resources.
 */
XmlTagNotFound::~XmlTagNotFound()
{
}
